<template>
  <div>
    子组件 {{ page }}
  </div>
</template>

<script>
export default {
  name: 'HelloWorld',
  props: {
    msg: String,
    page: {
      type: Number,
      default: 10
    }
  },
  created () {
    console.log("子组件 created5")
  },
  beforeCreate () {
    console.log("子组件 beforeCreate4")
  },
  beforeMount () {
    console.log("子组件 beforeMount6")
  },
  mounted () {
    console.log("子组件 mounted7")
  },
  beforeUpdate () {
    console.log("子组件 beforeUpdate")
  },
  updated () {
    console.log("子组件 updated")
  },
  beforeDestroy () {
    console.log("子组件 beforeDestroy")
  },
  destroyed () {
    console.log("子组件 destroyed")
  },

}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="less">
h3 {
  margin: 40px 0 0;
}

ul {
  list-style-type: none;
  padding: 0;
}

li {
  display: inline-block;
  margin: 0 10px;
}

a {
  color: #42b983;
}
</style>
